package j.framework.query.core;

import j.framework.core.LoginUser;
import j.util.jdbc.JdbcTemplate;

import java.util.Map;

/**
 * 自定义查询上下文
 * Created by junhai on 2015/2/23.
 */
public class QueryContext {
    public final LoginUser user;
    public final Map<String,String> params;
    public final QueryMetadata qmd;
    private JdbcTemplate jdbcTemplate;

    public QueryContext(LoginUser user, Map<String, String> params, QueryMetadata qmd) {
        this.user = user;
        this.params = params;
        this.qmd = qmd;
    }

    public JdbcTemplate getJdbcTemplate() {
        return jdbcTemplate;
    }
    public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
        this.jdbcTemplate = jdbcTemplate;
    }
}
